/**
 * @++和--的运算
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>


int main(int argc, char *argv[]) {
	int a = 5, b = 4, x, y;

	x = a++ * a++ * a++;
	y = --b * --b * --b;
	printf("a=%d,x=%d\n", a, x);//后缀形式，先取x的值进行运算在三次++运算
	printf("b=%d,y=%d\n", b, y);//前缀形式，先进行三次--运算再取b的值相乘
}
